package com.clei.Y2023.M10.D13.packet;

import java.util.concurrent.BlockingQueue;

/**
 * 测试串口包处理器
 *
 * @author Y
 * @date 2023-10-25
 */
public class TestPacketHandler implements PacketHandler {
    /**
     * 包处理
     *
     * @param msgQueue 阻塞队列
     * @param data     data
     */
    @Override
    public void packetHandle(BlockingQueue<String> msgQueue, byte[] data) {
        msgQueue.add(new String(data));
    }
}
